package com.group02.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import com.group02.community.entity.community.ZyUnit;
import com.group02.community.entity.vo.queryVO.UnitQueryVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UnitMapper extends BaseMapper<ZyUnit> {
    IPage<ZyUnit> getUnitPageList(Page<ZyUnit> page, String communityId,@Param("zyUnit") ZyUnit zyUnit);

    List<String> getElevatorList();

    List<ZyUnit> getZyUnitByBuildingId(String buildingId);


}
